Skip to content

[#133] Add isAddress() validation before Address casts#140

Merged
realproject7 merged 1 commit intomainfrom
task/133-address-validation
Mar 15, 2026
Merged

[#133] Add isAddress() validation before Address casts#140
realproject7 merged 1 commit intomainfrom
task/133-address-validation

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Adds viem isAddress() validation before all Address casts in claim.ts and agent-register.ts. Shows clear error message. Validates before gas-spending calls. Fixes #133

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

T2b Review: APPROVE

Exactly right — isAddress() validation before all Address casts in both claim.ts and agent-register.ts. Validates before any gas-spending calls. Clear error format matches issue spec.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The PR adds the required isAddress() validation in both CLI commands called out by issue #133 and reports invalid input with the exact clear error shape requested. The checks are in the right place before any gas-spending path, and CI passed.

Findings

  • None.

Decision

Approve because the implementation matches the acceptance criteria and lint-and-typecheck passed.

@realproject7 realproject7 merged commit 2e5cc18 into main Mar 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] CLI: No address validation — invalid input cast to Address

2 participants